package org.dtree.ow.models;

import org.dtree.ow.base.model.BaseModel;
import org.nutz.dao.entity.annotation.*;

import java.util.List;

/**
 * Created by dengwubo on 2017/9/19.
 */
@Table("dt_ow_service")
public class Service extends BaseModel {
    @Name
    @Comment
    @Column("service_id")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String id;

    @Column("img_url")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String imgUrl;


    @Column("description")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String description;

    @ManyMany(relation = "dt_ow_service_case",from = "service_id",to="case_id")
    private List<Case> cases;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<Case> getCases() {
        return cases;
    }

    public void setCases(List<Case> cases) {
        this.cases = cases;
    }
}
